﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 会员卡管理系统
{
    public partial class Stayfrm : Form
    {
        public Stayfrm()
        {
            InitializeComponent();
            button1.DialogResult = DialogResult.Yes;
            button2.DialogResult = DialogResult.Yes;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (this.Text == "入住")
            {
                VipStayfrm vipStay = new VipStayfrm();
                vipStay.ShowDialog();
                this.Close();

            }
            else
            {
                vipintfrm norout = new vipintfrm();
                norout.Text = this.Text;
                norout.ShowDialog();
                this.Close();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.Text == "入住")
            {
                NorStayfrm norStay = new NorStayfrm();
                norStay.ShowDialog();
                this.Close();
            }
            else
            {
                norintfrm norint = new norintfrm();
                norint.Text = this.Text;
                norint.ShowDialog();
                this.Close();
            }
        }

        private void button1_MouseEnter(object sender, EventArgs e)
        {
            button1.BackgroundImage = Properties.Resources.普通入住粗体;
        }

        private void button1_MouseLeave(object sender, EventArgs e)
        {
            button1.BackgroundImage = Properties.Resources.普通入住细体;
        }

        private void button2_MouseEnter(object sender, EventArgs e)
        {
            button2.BackgroundImage = Properties.Resources.会员入住粗体;
        }

        private void button2_MouseLeave(object sender, EventArgs e)
        {
            button2.BackgroundImage = Properties.Resources.会员入住细体;
        }

        private void Stayfrm_Load(object sender, EventArgs e)
        {

        }
    }
}
